home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / taropyon / silib / inc / siio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-16  |  1.3 KB  |  49 lines

  1. /*************************************************************************
  2. *    I/O library
  3. *************************************************************************/
  4.  
  5. #ifndef    _SIIO_H
  6. #define    _SIIO_H
  7.  
  8. #include    <stdio.h>
  9.  
  10. #ifndef    _SIDEFS_H
  11. #    include    <sidefs.h>
  12. #endif
  13.  
  14. #ifndef    FS_FOPEN
  15. #    define    FS_FOPEN(_fn,_md)        (FsFuncFopen)((_fn),(_md))
  16. #endif
  17. #ifndef    FS_FCLOSE
  18. #    define    FS_FCLOSE(_fp)            (FsFuncFclose)(_fp)
  19. #endif
  20. #ifndef    FS_MKDIR
  21. #    define    FS_MKDIR(_dir)            (FsFuncMkdir)(_dir)
  22. #endif
  23. #ifndef    FS_RMDIR
  24. #    define    FS_RMDIR(_dir)            (FsFuncRmdir)(_dir)
  25. #endif
  26. #ifndef    FS_REMOVE
  27. #    define    FS_REMOVE(_fn)            (FsFuncRemove)(_fn)
  28. #endif
  29. #ifndef    FS_RENAME
  30. #    define    FS_RENAME(_old,_new)    (FsFuncRename)((_old),(_new))
  31. #endif
  32.  
  33. extern FILE         *(*FsFuncFopen)(CONST char *, CONST char *);
  34. extern int          (*FsFuncFclose)(FILE *);
  35. extern int          (*FsFuncMkdir)(CONST char *);
  36. extern int          (*FsFuncRmdir)(CONST char *);
  37. extern int          (*FsFuncRemove)(CONST char *);
  38. extern int          (*FsFuncRename)(CONST char *,CONST char *);
  39.  
  40.  
  41. extern FILE           *_fs_fopen( CONST char *fn, CONST char *md );
  42. extern int            _fs_fclose( FILE *fp );
  43. extern int            _fs_mkdir(CONST char *dir);
  44. extern int            _fs_rmdir(CONST char *dir);
  45. extern int            _fs_remove(CONST char *fn);
  46. extern int            _fs_rename(CONST char *old, CONST char *new);
  47.  
  48. #endif
  49.